<?php

namespace app\modules\pay\services;

use app\common\services\BaseService;
use app\models\GoodsOrder;

class GoodsOrderService extends BaseService{

    /**
     * 获取信息
     * @param $user_id
     * @param $id
     * @return null|GoodsOrder
     */
    public static function getInfoById($user_id,$id){
        return GoodsOrder::findOne(['user_id'=>$user_id,'order_id'=>$id]);
    }
}